Xbasic

Date_LastDayOfMonth Function

Syntax

LastDate as D = date_LastDayOfMonth([D date ])

Arguments

LastDate

The last date of a month.

date

Optional. Default = today. The date to use when calculating the last day of a month.

Description

Returns the last day of the month for a given date. If no argument is supplied, last day of current month.

Example

? Date_LastDayofMonth()
= {06/30/2006}
? Date_LastDayofMonth({7/4/06})
= {07/31/2006}

See Also